<div id="box-login">
  <div>
      <form [formGroup]="loginForm" (ngSubmit)="login()">
        <div>
          <mat-form-field>
            <input formControlName="username" matInput placeholder="请输入用户名" >
          </mat-form-field>
        </div>
        <div>
          <mat-form-field>
            <input formControlName="password" matInput placeholder="请输入密码" type="password">
          </mat-form-field>
        </div>
        <button mat-raised-button color="primary" type="submit">登入</button>
      </form>
    <!--<button mat-raised-button routerLink="/register">Register</button>-->
  </div>
</div>
